<?php
use yii\helpers\Html;
use yii\helpers\Url;
/* @var $this \yii\web\View */
/* @var $content string */

\frontend\assets\MktWapCommonAsset::register($this);

?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?php echo Yii::$app->language ?>">
<head>
    <meta name="keywords" content="首页关键字" />
    <meta name="description" content="首页描述" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=2.0" />
    <meta name="apple-mobile-web-app-capable" content="yes"/>

    <title><?php echo Html::encode($this->title) ?></title>
    <?php $this->head() ?>
    <?php echo Html::csrfMetaTags() ?>

      <style>
      .weui_cells_radio .weui_cell:active {
        background-color: #FFFFFF;
      }
      </style>

</head>

<body style="background: #ebebeb none repeat scroll 0 0;">
<?php $this->beginBody() ?>
<div data-role="page" id="page" style="height: 100%;">	

<div id="mainTab" class="weui_tab">
	<div class="weui_tab_bd">
        <?php
            if (yii::$app->controller->getRoute() == 'wap/work-home') {
                $contentId = 'work';
            } else if (yii::$app->controller->getRoute() == 'wap/market-home') {
                $contentId = 'market';
            } else if (yii::$app->controller->getRoute() == 'wap/work-home') {
                $contentId = 'resourcelib';
            } else if (yii::$app->controller->getRoute() == 'wap/resourcelib-home') {
                $contentId = 'self';
            } else if (yii::$app->controller->getRoute() == 'wap/self-home') {
                $contentId = 'market';
            }
        ?>
		<div id="<?php echo $contentId; ?>" class="weui_tab_bd_item" style="display: block;">
            <?php echo $content ?>
		</div>
    </div>
	
    <div class="weui_tabbar">
		<a href="<?php echo Url::to(['wap/market-home']); ?>" class="weui_tabbar_item <?php echo Url::to(['wap/market-home']) == Url::current() ? 'weui_bar_item_on' : ''; ?> ">
			<div class="weui_tabbar_icon">
				<img class="market" src="resources/images/app/market.png"/>
				<img class="market_on" src="resources/images/app/market_1.png"/>
			</div>
			<p class="weui_tabbar_label">市场人</p>
		</a>
		<a href="<?php echo Url::to(['wap/work-home']); ?>" class="weui_tabbar_item <?php echo Url::to(['wap/work-home']) == Url::current() ? 'weui_bar_item_on' : ''; ?> ">
			<div class="weui_tabbar_icon">
				<img class="work" src="resources/images/app/work.png"/>
				<img class="work_on" src="resources/images/app/work_1.png"/>
			</div>
			<p class="weui_tabbar_label">工作圈</p>
		</a>
		<a href="<?php echo Url::to(['wap/resourcelib-home']); ?>" class="weui_tabbar_item <?php echo Url::to(['wap/resourcelib-home']) == Url::current() ? 'weui_bar_item_on' : ''; ?> ">
			<div class="weui_tabbar_icon">
				<img class="lib" src="resources/images/app/lib.png"/>
				<img class="lib_on" src="resources/images/app/lib_1.png"/>
			</div>
			<p class="weui_tabbar_label">资源库</p>
		</a>
		<a href="<?php echo Url::to(['wap/self-home']); ?>" class="weui_tabbar_item <?php echo Url::to(['wap/self-home']) == Url::current() ? 'weui_bar_item_on' : ''; ?> ">
			<div class="weui_tabbar_icon" style="padding-left: 8px;">
				<img class="self" src="resources/images/app/self.png"/>
				<img class="self_on" src="resources/images/app/self_1.png"/>
			</div>
			<p class="weui_tabbar_label">我</p>
		</a>
    </div>
</div>

</div>

<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
